<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://localhost" xmlns="http://localhost" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:element name="report">
		<xs:annotation>
			<xs:documentation xml:lang="ro">Definitia unui fisier de raportare pentru DRG.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="DRGS">
					<xs:annotation>
						<xs:documentation xml:lang="ro">
							Lista serviciilor DRG.
						</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DRG" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">Definitia unui serviciu DRG raportat.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="AppID" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="hospitalDeptCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul sectie de spital.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="coefK" type="xs:double" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Valoarea coeficientului K al cazurilor extreme.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="averageCasesNo" type="xs:double" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Valoarea numarului mediu de cazuri.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="icmRealizat" type="xs:double" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Valoarea ICM (Indice case-mix) realizat.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="tcp" type="xs:double" use="optional"/>
									<xs:attribute name="realisedAmount" type="xs:decimal" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Suma realizata
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="validatedCasesNo" type="xs:integer" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul de cazuri raportate si validate de catre SNSPMS.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="invalidatedCasesNo" type="xs:integer" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul de cazuri raportate si ne-validate de catre SNSPMS.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="realisedCasesNo" type="xs:integer" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul de cazuri externate si raportate catre SNSPMS.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="personType" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Codul tipului de persoana pentru care sunt valabile informatiile raportate (Asigurata, Boli profesionale, Vatamari corporale, Card European, Asigurari internationale.)</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:enumeration value="ASIGURAT">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Asigurati</xs:documentation>
													</xs:annotation>
												</xs:enumeration>
												<xs:enumeration value="ACCI_PROF">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Accidente de munca sau boli profesionale</xs:documentation>
													</xs:annotation>
												</xs:enumeration>
												<xs:enumeration value="PREJ_DAUN">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Accidente rutiere sau vatamari corporale</xs:documentation>
													</xs:annotation>
												</xs:enumeration>
												<xs:enumeration value="CARD_EURO">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Persoane titulare ale cardului european</xs:documentation>
													</xs:annotation>
												</xs:enumeration>
												<xs:enumeration value="CETA_CONV">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Cetatenii statelor cu care Romania a incheiat intelegeri, conventii sau protocoale internationale</xs:documentation>
													</xs:annotation>
												</xs:enumeration>
												<xs:enumeration value="FORM_CEE">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Beneficiari de regulament cee 1408/1971</xs:documentation>
													</xs:annotation>
												</xs:enumeration>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="DRGPrescriptions" minOccurs="0">
					<xs:annotation>
						<xs:documentation xml:lang="ro">
							Lista retetelor prescrise.
						</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DRGPrescription" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">
										Reteta prescrisa.
									</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="DRGPrescDrug" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">
													Medicament prescris pe reteta.
												</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="no" type="xs:integer" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Numar de ordine pe reteta.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="drugCode" type="xs:string" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul medicamentului. Acest atribut se preia din nomenclatorul Drugs.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="activeSubstance" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul substantei active. Acest atribut se preia din nomenclatorul ActiveSubstances.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="concentration" type="xs:string" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul concentratiei. Acest atribut se preia din nomenclatorul Concentrations.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="diseaseCategory" type="xs:string" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul categoriei de boala. Acest atribut se preia din nomenclatorul DiseaseCategories.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="diseaseCode" type="xs:string" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul de boala. Acest atribut se preia din nomenclatorul ICD10.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="pharmaceuticalForm" type="xs:string" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul formei farmaceutice. Acest atribut se preia din nomenclatorul PharmaceuticalForms.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="quantity" type="xs:double" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Cantitatea.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="dose" type="xs:string" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Doza zilnica.
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="diagnosticType" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">
															Codul tipului de diagnostic. Acest atribut poate avea urmatoarele valori:
															1 -&gt; ACUT
															2 -&gt; SUBACUT
															3 -&gt; CRONIC
														</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="AppID" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Identificator unic in aplicatia de nivel 4.
												Acest atribut este folosit la identificarea randului raportat.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="stencilNo" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Parafa medicului care a facut prescrierea.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="personPID" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												CNP-ul persoanei care a primit prescrierea
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="patientInsuranceHouse" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul casei de asigurari a pacientului. Acest atribut este preluat din nomenclatorul OrgUnits.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="serialNo" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul retetei.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="serialCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Seria retetei.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="contractNo" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Contractul pe baza caruia s-a prescris reteta.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="prescriptionDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data prescrierei retetei.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="merNo" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul fisei de internare.
											</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="20"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="merDate" type="xs:date" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data fisei de internare.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="patientType" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Tipul de pacient. ???
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="no" type="xs:integer" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												???
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="nhp" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												PNS-ul pentru care a fost prescrisa reteta. Acest atribut este preluat din nomenclatorul NHPS.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="prescriptionType" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Tipul de reteta. Acest atribut este preluat din nomenclatorul PrescriptionTypes.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="noDaysTreatment" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul de zile de tratament.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="DRGHomeCare" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation xml:lang="ro">
							Lista cu recomandarile de ingrijiri la domiciliu.
						</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DRGServices" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">
										Recomandare de ingrijire la domiciliu.
									</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="servCode" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul serviciului recomandat. Acest atribut este preluat din nomenclatorul Services.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="period" type="xs:integer" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Perioada (in zile) pentru care sunt recomandate serviciile.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="cycle" type="xs:integer" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Ciclul (in zile) de prestare de servicii.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="qtyPerCycle" type="xs:integer" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Cantitate de servicii recomandate pe ciclu.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="AppID" type="xs:string" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									Identificator unic in aplicatia de nivel 4.
									Acest atribut este folosit la identificarea randului raportat.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="serialNo" type="xs:string" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									Numarul recomandarii.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="serialCode" type="xs:string" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									Seria recomandarii.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="recomDate" type="xs:date" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									Data recomandarii.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="repPhysician" type="xs:string" use="optional">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									Parafa medicului care a facut recomandarea.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="repDiagnosticCode" type="xs:string" use="optional">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									Diagnosticul pentru care a fost facuta recomandarea. Acest atribut este preluat din nomenclatorul ICD10S.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="repPid" type="xs:string" use="optional">
							<xs:annotation>
								<xs:documentation xml:lang="ro">
									CNP-ul pacientului pentru care a fost facuta recomandarea.
								</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
				<xs:element name="DRGMedicalDevices" minOccurs="0">
					<xs:annotation>
						<xs:documentation xml:lang="ro">
							Lista recomandarilor de dispozitive medicale prescrise.
						</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DRGMedicalDevice" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">
										Recomandare de dispozitiv medical prescris.
									</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="AppID" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Identificator unic in aplicatia de nivel 4.
												Acest atribut este folosit la identificarea randului raportat.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="serialNo" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul recomandarii.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="serialCode" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Seria recomandarii.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="recomDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data recomandarii
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="deviceType" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Tipul de dispozitiv prescris. Acest atribut poate avea urmatoarele valori:
												0 -&gt; DREPT
												1 -&gt; STANG
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="prothesysType" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Tipul de proteza. Acest atribut poate avea urmatoarele valori:
												0 -&gt; DEFINITIVA
												1 -&gt; TEMPORARA
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="deviceCode" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul dispozitivului medical recomandat. Acest atribut este preluat din nomenclatorul MedicalDeviceTypes
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="repPhysician" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Parafa medicului care a prescris recomandarea.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="repDiagnosticCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul diagnosticului pentru care a fost prescrisa recomandarea. Acest atribut este preluat din nomenclatorul ICD10S
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="repPid" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												CNP-ul pacientului pentru care a fost prescrisa recomandarea.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="DRGMedicalNotes" minOccurs="0">
					<xs:annotation>
						<xs:documentation xml:lang="ro">
							Lista biletelor de trimitere prescrise.
						</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DRGMedicalNote" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">
										Bilet de trimitere prescris.
									</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:attribute name="AppID" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Identificator unic in aplicatia de nivel 4.
												Acest atribut este folosit la identificarea randului raportat.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="stencilNo" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Parafa medicului care a prescris trimiterea.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="personPID" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												CNP-ul pacientului pentru care a fost prescrisa trimiterea.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="patientInsuranceHouse" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul casei de asigurari a pacientului. Acest atribut este preluat din nomenclatorul OrgUnits.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="serialNo" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul trimiterii.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="serialCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Seria trimiterii
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="issueDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data emiterii trimiterii.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="merNo" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numarul fisei de internare.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="merDate" type="xs:date" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data fisei de internare.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ticketType" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Tipul de trimitere. Acest atribut poate avea urmatoarele valori:
												1 -&gt; CLINIC (DE SPECIALITATE)
												2 -&gt; PARACLINIC (DE LABORATOR)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="no" type="xs:integer" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												???
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="diagnostic" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul diagnosticului pentru care a fost emisa trimiterea. Acest atribut este preluat din nomenclatorul ICD10S.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="specialty" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul specialitatii clinice pentru care a fost emisa trimiterea. Acest atribut este preluat din nomenclatorul Specialities.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="ForeignPersons" minOccurs="0">
					<xs:annotation>
						<xs:documentation xml:lang="ro">
							Lista persoanelor straine.
						</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="ForeignPerson" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">
										Persoana straina.
									</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ForeignProcedure" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>Serviciile medicale efectuate persoanei staine</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="procedureCode" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Codul procedurii efectuate. Valoarea acestui atribut este preluata din nomenclatorul Procedures</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="personIdentifier" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul de identificare al persoanei staine.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="personFirstName" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Prenumele persoanei straine.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="personLastName" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numele persoanei strine.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="birthDate" type="xs:date" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data de nastere a persoanei straine.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="countryCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul tarii cetateniei persoanei straine.
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="cardCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul cardului de asigurat al persoanei straine.
												(In cazul in care persoana are card de asigurare european)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="cardExpireDate" type="xs:date" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Data de expirare a cardului de asigurare.
												(In cazul in care persoana are card de asigurare european)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="emissiveOrgUnitCode" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Codul unitatii care a emis cardul de asigurare.
												(In cazul in care persoana are card de asigurare european)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="emissiveOrgUnitName" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Numele unitatii care a emis cardul de asigurare.
												(In cazul in care persoana are card de asigurare european)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="emissiveOrgUnitAddress" type="xs:string" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												Adresa unitatii care a emis cardul de asigurare.
												(In cazul in care persoana are card de asigurare european)
											</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="caseId" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">
												ID-ul de caz asignat de SNSPMS.
											</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:length value="36"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="personType" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Codul tipului de persoana pentru care sunt valabile informatiile raportate (Asigurata, Cu Card de asigurare European, etc.)</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="internmentDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Data internarii.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="releaseDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Data externarii.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="hospitalDeptCode" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Codul sectiei in care a fost internata persoana straina.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="PidLists">
					<xs:annotation>
						<xs:documentation xml:lang="ro">Lista CNP-uri care se incadreaza la situatii exceptionale</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="PidList" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="ro">Persoane care se incadreaza la situatii exceptionale</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Procedure" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Serviciile medicale efectuate </xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="procedureCode" type="xs:string" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Codul procedurii efectuate. Valoarea acestui atribut este preluata din nomenclatorul Procedures.</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="AppID" type="xs:string" use="required"/>
									<xs:attribute name="pid" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">CNP-ul persoanei.</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="13"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="specialSituationCode" use="optional">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Codul situatiei speciale. Valoarea acestui atribut este preluata din nomenclatorul SpecialSituations.</xs:documentation>
										</xs:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:maxLength value="20"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="internmentDate" type="xs:date" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Luna in care a avut loc procedura.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="hospitalDeptCode" type="xs:string" use="required">
										<xs:annotation>
											<xs:documentation xml:lang="ro">Codul sectiei in care a avut loc internarea.</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="releaseDate" type="xs:date" use="optional"/>
									<xs:attribute name="sheetNo" type="xs:string" use="required"/>
									<xs:attribute name="case_id" use="required">
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:length value="36"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
									<xs:attribute name="internmentCriteriaCode" type="xs:string" use="optional"/>
									<xs:attribute name="birthDate" type="xs:date" use="required"/>
									<xs:attribute name="codeCAS" type="xs:string" use="optional"/>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="AppKey" type="xs:string" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Cheia de identificare a aplicaţiei de raportare (producator de software 3rd partry)</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="AppID" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Identificator unic in aplicatia de nivel 4.
						Acest atribut este folosit la identificarea raportarii.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="hospitalCode" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Codul unitatii care face raportarea.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="fiscalCode" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Codul fiscal al unitatii care face raportarea.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="insuranceHouse" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Codul casei de asigurari cu care este contractul. Acest atribut este preluat din nomenclatorul OrgUnits.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="contractNo" type="xs:string" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Numarul contractului pentru care se face raportarea.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="reportingDate" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Data raportarii.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="startFrom" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Data de inceput a perioadei de raportare</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="endTo" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">
						Data de sfarsit a perioadei raportate.
					</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="invoiceNo" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice number</xs:documentation>
					<xs:documentation xml:lang="ro">Numar factura</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="invoiceDate" type="xs:date" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice date</xs:documentation>
					<xs:documentation xml:lang="ro">Data factura</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="invoiceValue" type="xs:decimal" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="en">Invoice amount</xs:documentation>
					<xs:documentation xml:lang="ro">Valoare factura</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
